<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateContaBancariaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateContaBancariaLabel_idContaB}" for="idContaB" />
                    <h:inputText id="idContaB" value="#{contaBancariaController.selected.idContaB}" title="#{bundle.CreateContaBancariaTitle_idContaB}" required="true" requiredMessage="#{bundle.CreateContaBancariaRequiredMessage_idContaB}"/>
                    <h:outputLabel value="#{bundle.CreateContaBancariaLabel_numero}" for="numero" />
                    <h:inputText id="numero" value="#{contaBancariaController.selected.numero}" title="#{bundle.CreateContaBancariaTitle_numero}" required="true" requiredMessage="#{bundle.CreateContaBancariaRequiredMessage_numero}"/>
                    <h:outputLabel value="#{bundle.CreateContaBancariaLabel_agenciaAbertura}" for="agenciaAbertura" />
                    <h:inputText id="agenciaAbertura" value="#{contaBancariaController.selected.agenciaAbertura}" title="#{bundle.CreateContaBancariaTitle_agenciaAbertura}" />
                    <h:outputLabel value="#{bundle.CreateContaBancariaLabel_detalhe}" for="detalhe" />
                    <h:inputText id="detalhe" value="#{contaBancariaController.selected.detalhe}" title="#{bundle.CreateContaBancariaTitle_detalhe}" required="true" requiredMessage="#{bundle.CreateContaBancariaRequiredMessage_detalhe}"/>
                    <h:outputLabel value="#{bundle.CreateContaBancariaLabel_fkBanco}" for="fkBanco" />
                    <h:selectOneMenu id="fkBanco" value="#{contaBancariaController.selected.fkBanco}" title="#{bundle.CreateContaBancariaTitle_fkBanco}" required="true" requiredMessage="#{bundle.CreateContaBancariaRequiredMessage_fkBanco}">
                        <f:selectItems value="#{bancoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateContaBancariaLabel_dataAbertura}" for="dataAbertura" />
                    <h:inputText id="dataAbertura" value="#{contaBancariaController.selected.dataAbertura}" title="#{bundle.CreateContaBancariaTitle_dataAbertura}" required="true" requiredMessage="#{bundle.CreateContaBancariaRequiredMessage_dataAbertura}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{contaBancariaController.create}" value="#{bundle.CreateContaBancariaSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{contaBancariaController.prepareList}" value="#{bundle.CreateContaBancariaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateContaBancariaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
